<?php
use com\gdl\common\dataobject\common\ResultDO; 
use com\gdl\newagk\interfaces\AdminQuestypeServiceIf;
use com\gdl\newagk\dataobject\adminquestype\QuestypeDTO; 
require(dirname(dirname(__FILE__)) ."/php_sdk-master/include.php");
use MagicCrypt\MagicCrypt;
/**
 * 试题分类后台接口
 * 包含列表 修改 添加 添加标签
 */
class api_AdminQuestypeService extends api_Abstract implements AdminQuestypeServiceIf{ 
    /**
     * 试题分类列表
     */
    public function questypeList(QuestypeDTO $questype)
    { 
        $username = $user->username ? gdl_lib_BaseUtils::getStr($user->username) : "";
        $password = $user->password ? gdl_lib_BaseUtils::getStr($user->password) : "";
        $platform =  $user->platform ? gdl_lib_BaseUtils::getStr($user->platform, 'int') : 0;
		$result = new ResultDO();
        $result->success = false;
        $result->code = 0; 
        $result->data = []; 
        try{
                $result->success = true;
                return $result;
        } catch (Exception $e) {
                $result->success = false;
                $result->code = $e->getCode();
                $result->message = $e->getMessage(); 
        }
        return $result; 
    }
    /**
     *  添加试题分类
     */
    public function addQuestype(QuestypeDTO $questype){ 
	$result = new ResultDO();
        $result->code = 400;
        $result->success = true;
        $result->data[] = [];
     
        try{
		 
        } catch (Exception $e) {
            $result->success = false;
            $result->code = $e->getCode();
            $result->message = $e->getMessage(); 
        }
        return $result;
    }
    /**
     *  修改试题分类
     */
    public function editQuestype(QuestypeDTO $questype){
        $result = new ResultDO();
        $result->code = 400;
        $result->success = true;
        $result->data[] = [];
         
        try{
           
        }catch(Exception $e){
            $result->success = false;
            $result->code = $e->getCode();
            $result->message = $e->getMessage(); 
        }
        return $result;
    }
     
   
}
